import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/moshme";


// 查询阶段详细
export function getStep(stepId) {
  return request({
    url: '/project/step/' + parseStrEmpty(stepId),
    method: 'get'
  })
}


// 提交阶段
export function submitStep(data) {
  return request({
    url: '/project/step',
    method: 'post',
    data: data
  })
}


// 删除阶段
export function delStep(stepId) {
  return request({
    url: '/project/step/' + stepId,
    method: 'delete'
  })
}

// 当前阶段完结
export function stageOver(projectId, clickStep) {
  return request({
    url: '/project/step/' + projectId + '/' + clickStep,
    method: 'put'
  });
}

